package com.eascs.ant.data.service;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.eascs.ant.data.dao.MongoDbDao;
import com.eascs.ant.data.entity.authority.AccountAuthority;
import com.eascs.web.sso.UserHolder;

@Service
public class CommonService{

	@Inject
	MongoDbDao mongoDbDao;
	
	public AccountAuthority getAccountAuthority(){
		String account = UserHolder.getUser().getAccount();
		return mongoDbDao.getAuthority(account);
	}
}
